BubbleableMetadata::mergeAttachments

public static BubbleableMetadata::mergeAttachments(array $a, array $b) Merges two attachments arrays (which live under the '#attached' key). The values under the 'drupalSettings' key are merged in a special way, to match the behavior of: jQuery.extend(true, {}, $settings_items[0], $settings_items[1], ...) This means integer indices are preserved just like string indices are, rather than re-indexed as is common in PHP array merging. Example: function module1_page_attachments(&$page) {

Role

Defines the user role entity class. Plugin annotation @ConfigEntityType( id = "user_role", label = @Translation("Role"), handlers = { "storage" = "Drupal\user\RoleStorage", "access" = "Drupal\user\RoleAccessControlHandler", "list_builder" = "Drupal\user\RoleListBuilder", "form" = { "default" = "Drupal\user\RoleForm", "delete" = "Drupal\Core\Entity\EntityDeleteForm" } }, admin_permission = "administer permissions", config_prefix = "role", static_cach

DateTimePlus

Wraps DateTime(). This class wraps the PHP DateTime class with more flexible initialization parameters, allowing a date to be created from an existing date object, a timestamp, a string with an unknown format, a string with a known format, or an array of date parts. It also adds an errors array and a __toString() method to the date object. This class is less lenient than the DateTime class. It changes the default behavior for handling date values like '2011-00-00'. The DateTime class would conv

Editor::$supports_content_filtering

Whether the editor supports "allowed content only" filtering. Type: bool File core/modules/editor/src/Annotation/Editor.php, line 76 Class Editor Defines an Editor annotation object. Namespace Drupal\editor\Annotation Code public $supports_content_filtering;

NodeAccessControlHandler

Defines the access control handler for the node entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\node\NodeAccessControlHandler implements EntityHandlerInterface, NodeAccessControlHandlerInterface See also \Drupal\node\Entity\Node Related topics Node access rights The node access system determines who can

ConfigImportForm

Defines the configuration import form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\config\Form\ConfigImportForm File core/modules/config/src/Form/ConfigImportForm.php, line 14 Namespace Drupal\config\Form Members Name Modifiers Type Description ConfigImportForm::$configS

EntityViewsData::getViewsData

public EntityViewsData::getViewsData() Returns views data for the entity type. Return value array Views data in the format of hook_views_data(). Overrides EntityViewsDataInterface::getViewsData File core/modules/views/src/EntityViewsData.php, line 118 Class EntityViewsData Provides generic views integration for entities. Namespace Drupal\views Code public function getViewsData() { $data = []; $base_table = $this->entityType->getBaseTable() ? : $this->entityType->id();

ConfigurableLinkManagerInterface::setLinkDomain

public ConfigurableLinkManagerInterface::setLinkDomain($domain) Sets the link domain used in constructing link URIs. Parameters string $domain: The link domain to use for constructing link URIs. Return value $this File core/modules/rest/src/LinkManager/ConfigurableLinkManagerInterface.php, line 18 Class ConfigurableLinkManagerInterface Defines an interface for a link manager with a configurable domain. Namespace Drupal\rest\LinkManager Code public function setLinkDomain($domain);

CommentTranslationHandler

Defines the translation handler for comments. Hierarchy class \Drupal\content_translation\ContentTranslationHandler implements ContentTranslationHandlerInterface, EntityHandlerInterface uses DependencySerializationTraitclass \Drupal\comment\CommentTranslationHandler File core/modules/comment/src/CommentTranslationHandler.php, line 12 Namespace Drupal\comment Members Name Modifiers Type Description CommentTranslationHandler::entityFormAlter public function Performs the n

UnroutedUrlAssemblerInterface::assemble

public UnroutedUrlAssemblerInterface::assemble($uri, array $options = array(), $collect_bubbleable_metadata = FALSE) Builds a domain-local or external URL from a URI. For actual implementations the logic probably has to be split up between domain-local URIs and external URLs. Parameters string $uri: A local URI or an external URL being linked to, such as "base:foo" or "http://example.com/foo". If you provide a full URL, it will be considered an external URL as long as it has an allowed protoco