ControllerResolver::$classResolver

The class resolver. Type: \Drupal\Core\DependencyInjection\ClassResolverInterface File core/lib/Drupal/Core/Controller/ControllerResolver.php, line 35 Class ControllerResolver ControllerResolver to enhance controllers beyond Symfony's basic handling. Namespace Drupal\Core\Controller Code protected $classResolver;

ControllerResolver

ControllerResolver to enhance controllers beyond Symfony's basic handling. It adds two behaviors: When creating a new object-based controller that implements ContainerAwareInterface, inject the container into it. While not always necessary, that allows a controller to vary the services it needs at runtime. By default, a controller name follows the class::method notation. This class adds the possibility to use a service from the container as a controller by using a service:method notation (Sym

ControllerBase::state

protected ControllerBase::state() Returns the state storage service. Use this to store machine-generated data, local to a specific environment that does not need deploying and does not need human editing; for example, the last time cron was run. Data which needs to be edited by humans and needs to be the same across development, production, etc. environments (for example, the system maintenance message) should use config() instead. Return value \Drupal\Core\KeyValueStore\KeyValueStoreInterface

ControllerBase::moduleHandler

protected ControllerBase::moduleHandler() Returns the module handler. Return value \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Controller/ControllerBase.php, line 237 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected function moduleHandler() { if (!$this->moduleHandler) { $this->moduleHandler = $this->container()->get('module_handler'); } return $this->moduleHandler; }

ControllerBase::languageManager

protected ControllerBase::languageManager() Returns the language manager service. Return value \Drupal\Core\Language\LanguageManagerInterface The language manager. File core/lib/Drupal/Core/Controller/ControllerBase.php, line 275 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected function languageManager() { if (!$this->languageManager) { $this->languageManager = $this->container()->get('language_manager');

ControllerBase::keyValue

protected ControllerBase::keyValue($collection) Returns a key/value storage collection. Parameters string $collection: Name of the key/value collection to return. Return value \Drupal\Core\KeyValueStore\KeyValueStoreInterface File core/lib/Drupal/Core/Controller/ControllerBase.php, line 207 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected function keyValue($collection) { if (!$this->keyValue) { $this->keyValue =

ControllerBase::formBuilder

protected ControllerBase::formBuilder() Returns the form builder service. Return value \Drupal\Core\Form\FormBuilderInterface File core/lib/Drupal/Core/Controller/ControllerBase.php, line 249 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected function formBuilder() { if (!$this->formBuilder) { $this->formBuilder = $this->container()->get('form_builder'); } return $this->formBuilder; }

ControllerBase::entityTypeManager

protected ControllerBase::entityTypeManager() Retrieves the entity type manager. Return value \Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager. File core/lib/Drupal/Core/Controller/ControllerBase.php, line 142 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected function entityTypeManager() { if (!isset($this->entityTypeManager)) { $this->entityTypeManager = $this->container()->get('entity

ControllerBase::entityManager

protected ControllerBase::entityManager() Retrieves the entity manager service. Return value \Drupal\Core\Entity\EntityManagerInterface The entity manager service. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Most of the time static::entityTypeManager() is supposed to be used instead. File core/lib/Drupal/Core/Controller/ControllerBase.php, line 129 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected func

ControllerBase::entityFormBuilder

protected ControllerBase::entityFormBuilder() Retrieves the entity form builder. Return value \Drupal\Core\Entity\EntityFormBuilderInterface The entity form builder. File core/lib/Drupal/Core/Controller/ControllerBase.php, line 155 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected function entityFormBuilder() { if (!$this->entityFormBuilder) { $this->entityFormBuilder = $this->container()->get('entity.form_b