DataDefinition::createFromDataType

public static DataDefinition::createFromDataType($type) Creates a new data definition object. This method is typically used by \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() to build a definition object for an arbitrary data type. When the definition class is known, it is recommended to directly use the static create() method on that class instead; e.g.: $map_definition = \Drupal\Core\TypedData\MapDataDefinition::create(); Parameters string $data_type: The data type, for wh

FormStateDecoratorBase::isExecuted

public FormStateDecoratorBase::isExecuted() Determines if the form was submitted and has been processed and executed. Return value bool TRUE if the form was submitted and has been processed and executed. Overrides FormStateInterface::isExecuted File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 98 Class FormStateDecoratorBase Decorates another form state. Namespace Drupal\Core\Form Code public function isExecuted() { return $this->decoratedFormState->isExecuted();

EntityViewBuilderInterface

Defines an interface for entity view builders. Hierarchy interface \Drupal\Core\Entity\EntityViewBuilderInterface Related topics Entity API Describes how to define and manipulate content and configuration entities. File core/lib/Drupal/Core/Entity/EntityViewBuilderInterface.php, line 13 Namespace Drupal\Core\Entity Members Name Modifiers Type Description EntityViewBuilderInterface::buildComponents public function Builds the component fields and properties of a set of e

FormElementBase::__construct

public FormElementBase::__construct(TypedDataInterface $element) Constructs a FormElementBase. Parameters \Drupal\Core\TypedData\TypedDataInterface $element: The schema element this form element is for. File core/modules/config_translation/src/FormElement/FormElementBase.php, line 38 Class FormElementBase Provides a common base class for form elements. Namespace Drupal\config_translation\FormElement Code public function __construct(TypedDataInterface $element) { $this->element =

system_sort_themes

system_sort_themes($a, $b) Sorts themes by their names, with the default theme listed first. Callback for uasort() within \Drupal\system\Controller\SystemController::themesPage(). See also system_sort_modules_by_info_name() File core/modules/system/system.module, line 1142 Configuration system that lets administrators modify the workings of the site. Code function system_sort_themes($a, $b) { if ($a->is_default) { return -1; } if ($b->is_default) { return 1; } return

MenuLinkResetForm::getCancelUrl

public MenuLinkResetForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 68 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code public function getCancelUrl() { return new Url('entity.menu.edit_form', array( 'menu' => $this

AjaxRenderer::__construct

public AjaxRenderer::__construct(ElementInfoManagerInterface $element_info_manager) Constructs a new AjaxRenderer instance. Parameters \Drupal\Core\Render\ElementInfoManagerInterface $element_info_manager: The element info manager. File core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php, line 38 Class AjaxRenderer Default main content renderer for Ajax requests. Namespace Drupal\Core\Render\MainContent Code public function __construct(ElementInfoManagerInterface $element_info_ma

BookManager::buildBookOutlineRecursive

protected BookManager::buildBookOutlineRecursive(&$links, $parents, $depth) Builds the data representing a book tree. The function is a bit complex because the rendering of a link depends on the next book link. Parameters array $links: A flat array of book links that are part of the book. Each array element is an associative array of information about the book link, containing the fields from the {book} table. This array must be ordered depth-first. array $parents: An array of the node ID

ConfigManager::getConfigDependencyManager

public ConfigManager::getConfigDependencyManager() Creates and populates a ConfigDependencyManager object. The configuration dependency manager is populated with data from the active store. Return value \Drupal\Core\Config\Entity\ConfigDependencyManager Overrides ConfigManagerInterface::getConfigDependencyManager File core/lib/Drupal/Core/Config/ConfigManager.php, line 228 Class ConfigManager The ConfigManager provides helper functions for the configuration system. Namespace Drupal\Cor

FieldUI::getOverviewRouteInfo

public static FieldUI::getOverviewRouteInfo($entity_type_id, $bundle) Returns the route info for the field overview of a given entity bundle. Parameters string $entity_type_id: An entity type. string $bundle: The entity bundle. Return value \Drupal\Core\Url A URL object. File core/modules/field_ui/src/FieldUI.php, line 25 Class FieldUI Static service container wrapper for Field UI. Namespace Drupal\field_ui Code public static function getOverviewRouteInfo($entity_type_id, $bundle) {