LinkGenerator

Provides a class which generates a link with route names and parameters. Hierarchy class \Drupal\Core\Utility\LinkGenerator implements LinkGeneratorInterface File core/lib/Drupal/Core/Utility/LinkGenerator.php, line 20 Namespace Drupal\Core\Utility Members Name Modifiers Type Description LinkGenerator::$moduleHandler protected property The module handler firing the route_link alter hook. LinkGenerator::$renderer protected property The renderer service. LinkGene

Checkboxes::processCheckboxes

public static Checkboxes::processCheckboxes(&$element, FormStateInterface $form_state, &$complete_form) Processes a checkboxes form element. File core/lib/Drupal/Core/Render/Element/Checkboxes.php, line 55 Class Checkboxes Provides a form element for a set of checkboxes. Namespace Drupal\Core\Render\Element Code public static function processCheckboxes(&$element, FormStateInterface $form_state, &$complete_form) { $value = is_array($element['#value']) ? $element['#valu

FieldDefinitionListenerInterface::onFieldDefinitionUpdate

public FieldDefinitionListenerInterface::onFieldDefinitionUpdate(FieldDefinitionInterface $field_definition, FieldDefinitionInterface $original) Reacts to the update of a field. Parameters \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition being updated. \Drupal\Core\Field\FieldDefinitionInterface $original: The original field definition; i.e., the definition before the update. File core/lib/Drupal/Core/Field/FieldDefinitionListenerInterface.php, line 26 Cla

SqlContentEntityStorage::onEntityTypeDelete

public SqlContentEntityStorage::onEntityTypeDelete(EntityTypeInterface $entity_type) Reacts to the deletion of the entity type. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type being deleted. Overrides EntityTypeListenerInterface::onEntityTypeDelete File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1392 Class SqlContentEntityStorage A content entity database storage implementation. Namespace Drupal\Core\Entity\Sql Code public functi

EntityDisplayModeListBuilder::buildHeader

public EntityDisplayModeListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/field_ui/src/EntityDisplayModeListBuilder.php, line 57 Class EntityDisplayModeListBuilder Defines a class to build a listing of view mode entities. Namespace Drupal\field_ui Code public function buildHeader() {

EntityDisplayRepository::getDisplayModeOptions

protected EntityDisplayRepository::getDisplayModeOptions($display_type, $entity_type_id) Gets an array of display mode options. Parameters string $display_type: The display type to be retrieved. It can be "view_mode" or "form_mode". string $entity_type_id: The entity type whose display mode options should be returned. Return value array An array of display mode labels, keyed by the display mode ID. File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 189 Class EntityDisplayR

EntityFormBuilder::$formBuilder

The form builder. Type: \Drupal\Core\Form\FormBuilderInterface File core/lib/Drupal/Core/Entity/EntityFormBuilder.php, line 25 Class EntityFormBuilder Builds entity forms. Namespace Drupal\Core\Entity Code protected $formBuilder;

BlockContentTypeDeleteForm::create

public static BlockContentTypeDeleteForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: T

DrupalKernel::classLoaderAddMultiplePsr4

protected DrupalKernel::classLoaderAddMultiplePsr4(array $namespaces = array(), $class_loader = NULL) Registers a list of namespaces with PSR-4 directories for class loading. Parameters array $namespaces: Array where each key is a namespace like 'Drupal\system', and each value is either a PSR-4 base directory, or an array of PSR-4 base directories associated with this namespace. object $class_loader: The class loader. Normally \Composer\Autoload\ClassLoader, as included by the front controller

Settings::$storage

Array with the settings. Type: array File core/lib/Drupal/Core/Site/Settings.php, line 20 Class Settings Read only settings that are initialized with the class. Namespace Drupal\Core\Site Code private $storage = array();