Drupal 8  8.0.2
ViewsHandlerManager Class Reference
Inheritance diagram for ViewsHandlerManager:

Public Member Functions

 __construct ($handler_type,\Traversable $namespaces, ViewsData $views_data, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler)
 
 getHandler ($item, $override=NULL)
 
 createInstance ($plugin_id, array $configuration=array())
 
 getFallbackPluginId ($plugin_id, array $configuration=array())
 
- Public Member Functions inherited from DefaultPluginManager
 __construct ($subdir,\Traversable $namespaces, ModuleHandlerInterface $module_handler, $plugin_interface=NULL, $plugin_definition_annotation_name= 'Drupal\Component\Annotation\Plugin')
 
 setCacheBackend (CacheBackendInterface $cache_backend, $cache_key, array $cache_tags=array())
 
 getDefinitions ()
 
 clearCachedDefinitions ()
 
 useCaches ($use_caches=FALSE)
 
 processDefinition (&$definition, $plugin_id)
 
- Public Member Functions inherited from PluginManagerBase
 getDefinition ($plugin_id, $exception_on_invalid=TRUE)
 
 getDefinitions ()
 
 createInstance ($plugin_id, array $configuration=array())
 
 getInstance (array $options)
 
- Public Member Functions inherited from DiscoveryInterface
 hasDefinition ($plugin_id)
 

Protected Attributes

 $viewsData
 
 $handlerType
 
- Protected Attributes inherited from DefaultPluginManager
 $cacheKey
 
 $cacheTags = array()
 
 $alterHook
 
 $subdir
 
 $moduleHandler
 
 $defaults = array()
 
 $pluginDefinitionAnnotationName
 
 $pluginInterface
 
 $namespaces
 
- Protected Attributes inherited from PluginManagerBase
 $discovery
 
 $factory
 
 $mapper
 

Additional Inherited Members

- Protected Member Functions inherited from DefaultPluginManager
 alterInfo ($alter_hook)
 
 getCachedDefinitions ()
 
 setCachedDefinitions ($definitions)
 
 getDiscovery ()
 
 getFactory ()
 
 findDefinitions ()
 
 alterDefinitions (&$definitions)
 
 providerExists ($provider)
 
- Protected Member Functions inherited from PluginManagerBase
 getDiscovery ()
 
 getFactory ()
 

Detailed Description

Plugin type manager for all views handlers.

Constructor & Destructor Documentation

__construct (   $handler_type,
\Traversable  $namespaces,
ViewsData  $views_data,
CacheBackendInterface  $cache_backend,
ModuleHandlerInterface  $module_handler 
)

Constructs a ViewsHandlerManager object.

Parameters
string$handler_typeThe plugin type, for example filter.
\Traversable$namespacesAn object that implements which contains the root paths keyed by the corresponding namespace to look for plugin implementations,
\Drupal\views\ViewsData$views_dataThe views data cache.
\Drupal\Core\Cache\CacheBackendInterface$cache_backendCache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler to invoke the alter hook with.

References DefaultPluginManager\alterInfo(), and DefaultPluginManager\setCacheBackend().

Here is the call graph for this function:

Member Function Documentation

createInstance (   $plugin_id,
array  $configuration = array() 
)

{Creates a pre-configured instance of a plugin.

Parameters
string$plugin_idThe ID of the plugin being instantiated.
array$configurationAn array of configuration relevant to the plugin instance.
Returns
object A fully configured plugin instance.
Exceptions
\Drupal\Component\Plugin\Exception\PluginExceptionIf the instance cannot be created, such as if the ID is invalid.
}

Implements FactoryInterface.

References Drupal\moduleHandler().

Referenced by ViewsHandlerManager\getHandler().

Here is the call graph for this function:

Here is the caller graph for this function:

getFallbackPluginId (   $plugin_id,
array  $configuration = array() 
)

{Gets a fallback id for a missing plugin.

Parameters
string$plugin_idThe ID of the missing requested plugin.
array$configurationAn array of configuration relevant to the plugin instance.
Returns
string The id of an existing plugin to use when the plugin does not exist.
}

Implements FallbackPluginManagerInterface.

getHandler (   $item,
  $override = NULL 
)

Fetches a handler from the data cache.

Parameters
array$itemAn associative array representing the handler to be retrieved:
  • table: The name of the table containing the handler.
  • field: The name of the field the handler represents.
string | null$override(optional) Override the actual handler object with this plugin ID. Used for aggregation when the handler is redirected to the aggregation handler.
Returns
An instance of a handler object. May be a broken handler instance.

References ViewsHandlerManager\createInstance().

Here is the call graph for this function:


The documentation for this class was generated from the following file: