Builds the page for administering shortcut sets.
Expanded class hierarchy of ShortcutController
class ShortcutController implements ControllerInterface {
/**
* Stores the entity manager.
*
* @var \Drupal\Core\Entity\EntityManager
*/
protected $entityManager;
/**
* Constructs a new \Drupal\shortcut\Controller\ShortCutController object.
*
* @param \Drupal\Core\Entity\EntityManager $entity_manager
* The entity manager.
*/
public function __construct(EntityManager $entity_manager) {
$this->entityManager = $entity_manager;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container
->get('plugin.manager.entity'));
}
/**
* Presents a list of layouts.
*
* @return array
* An array as expected by drupal_render().
*/
public function shortcutSetAdmin() {
return $this->entityManager
->getListController('shortcut')
->render();
}
}
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ShortcutController:: |
protected | property | Stores the entity manager. | |
ShortcutController:: |
public static | function |
Instantiates a new instance of this controller. Overrides ControllerInterface:: |
|
ShortcutController:: |
public | function | Presents a list of layouts. | |
ShortcutController:: |
public | function | Constructs a new \Drupal\shortcut\Controller\ShortCutController object. |