UrlGeneratorInterface::getPathFromRoute

public UrlGeneratorInterface::getPathFromRoute($name, $parameters = array()) Gets the internal path (system path) for a route. Parameters string|\Symfony\Component\Routing\Route $name: The route name or a route object. array $parameters: An array of parameters as passed to \Symfony\Component\Routing\Generator\UrlGeneratorInterface::generate(). Return value string The internal Drupal path corresponding to the route. File core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php, line 26 Class

FormAjaxException::__construct

public FormAjaxException::__construct(array $form, FormStateInterface $form_state, $message = "", $code = 0, \Exception $previous = NULL) Constructs a FormAjaxException object. Parameters array $form: The form definition. \Drupal\Core\Form\FormStateInterface $form_state: The form state. string $message: (optional) The exception message. int $code: (optional) A user defined exception code. \Exception $previous: (optional) The previous exception for nested exceptions. File core/lib/Drupal/Core/F

DefaultMenuLinkTreeManipulators::collectNodeLinks

protected DefaultMenuLinkTreeManipulators::collectNodeLinks(array &$tree, array &$node_links) Collects the node links in the menu tree. Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: The menu link tree to manipulate. array $node_links: Stores references to menu link elements to effectively set access. Return value \Drupal\Core\Menu\MenuLinkTreeElement[] The manipulated menu link tree. File core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php, line 175 Class Def

Entity::save

public Entity::save() Saves an entity permanently. When saving existing entities, the entity is assumed to be complete, partial updates of entities are not supported. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed. Throws \Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown. Overrides EntityInterface::save File core/lib/Drupal/Core/Entity/Entity.php, line 363 Class Entity Defines a base entity class. Namespace

BreakpointManager

Defines a breakpoint plugin manager to deal with breakpoints. Extension can define breakpoints in a EXTENSION_NAME.breakpoints.yml file contained in the extension's base directory. Each breakpoint has the following structure: MACHINE_NAME: label: STRING mediaQuery: STRING weight: INTEGER multipliers: - STRING For example: bartik.mobile: label: mobile mediaQuery: '(min-width: 0px)' weight: 0 multipliers: - 1x - 2x Optionally a breakpoint can provide a

RoleInterface::setIsAdmin

public RoleInterface::setIsAdmin($is_admin) Sets the role to be an admin role. Parameters bool $is_admin: TRUE if the role should be an admin role. Return value $this File core/modules/user/src/RoleInterface.php, line 80 Class RoleInterface Provides an interface defining a user role entity. Namespace Drupal\user Code public function setIsAdmin($is_admin);

system_region_list

system_region_list($theme, $show = REGIONS_ALL) Get a list of available regions from a specified theme. Parameters \Drupal\Core\Extension\Extension|string $theme: A theme extension object, or the name of a theme. $show: Possible values: REGIONS_ALL or REGIONS_VISIBLE. Visible excludes hidden regions. Return value An array of regions in the form $region['name'] = 'description'. File core/modules/system/system.module, line 1107 Configuration system that lets administrators modify the workings o

ConfigEntityType::$group

The group machine name. Overrides EntityType::$group File core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php, line 28 Class ConfigEntityType Defines a config entity type annotation object. Namespace Drupal\Core\Entity\Annotation Code public $group = 'configuration';

ConfigManager

The ConfigManager provides helper functions for the configuration system. Hierarchy class \Drupal\Core\Config\ConfigManager implements ConfigManagerInterface uses StringTranslationTrait File core/lib/Drupal/Core/Config/ConfigManager.php, line 19 Namespace Drupal\Core\Config Members Name Modifiers Type Description ConfigManager::$activeStorage protected property The active configuration storage. ConfigManager::$configCollectionInfo protected property The configura

FormStateDecoratorBase

Decorates another form state. Hierarchy class \Drupal\Core\Form\FormStateDecoratorBase implements FormStateInterface File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 11 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormStateDecoratorBase::$decoratedFormState protected property The decorated form state. FormStateDecoratorBase::addBuildInfo public function Adds a value to the build info. Overrides FormStateInterface::addBuildInfo