BreakpointInterface::getGroup

public BreakpointInterface::getGroup() Returns the breakpoint group. Return value string The breakpoint group. File core/modules/breakpoint/src/BreakpointInterface.php, line 56 Class BreakpointInterface Interface for Breakpoint plugins. Namespace Drupal\breakpoint Code public function getGroup();

LinkGeneratorTrait

Wrapper methods for the Link Generator. This utility trait should only be used in application-level code, such as classes that would implement ContainerInjectionInterface. Services registered in the Container should not use this trait but inject the appropriate service directly for easier testing. Hierarchy trait \Drupal\Core\Routing\LinkGeneratorTrait Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Link instead. File core/lib/Drupal/Core/Routing/LinkG

ConstraintViolationBuilder::$code

Type: mixed File core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 91 Class ConstraintViolationBuilder Defines a constraint violation builder for the Typed Data validator. Namespace Drupal\Core\TypedData\Validation Code protected $code;

FileSystem::CHMOD_FILE

Default mode for new files. See self::chmod(). File core/lib/Drupal/Core/File/FileSystem.php, line 22 Class FileSystem Provides helpers to operate on files and stream wrappers. Namespace Drupal\Core\File Code const CHMOD_FILE = 0664;

RouteSubscriber::alterRoutes

protected RouteSubscriber::alterRoutes(RouteCollection $collection) Alters existing routes for a specific collection. Parameters \Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes. Overrides RouteSubscriberBase::alterRoutes File core/modules/field_ui/src/Routing/RouteSubscriber.php, line 36 Class RouteSubscriber Subscriber for Field UI routes. Namespace Drupal\field_ui\Routing Code protected function alterRoutes(RouteCollection $collection)

LibraryDiscoveryParser::buildByExtension

public LibraryDiscoveryParser::buildByExtension($extension) Parses and builds up all the libraries information of an extension. Parameters string $extension: The name of the extension that registered a library. Return value array All library definitions of the passed extension. Throws \Drupal\Core\Asset\Exception\IncompleteLibraryDefinitionException Thrown when a library has no js/css/setting. \UnexpectedValueException Thrown when a js file defines a positive weight. File core/lib/Drupal/Cor

BaseFieldOverride::loadByName

public static BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name) Loads a base field bundle override config entity. Parameters string $entity_type_id: ID of the entity type. string $bundle: Bundle name. string $field_name: Name of the field. Return value static The base field bundle override config entity if one exists for the provided field name, otherwise NULL. File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 227 Class BaseFieldOverride Defines the ba

comment_tokens

comment_tokens($type, $tokens, array $data, array $options, BubbleableMetadata $bubbleable_metadata) Implements hook_tokens(). File core/modules/comment/comment.tokens.inc, line 123 Builds placeholder replacement tokens for comment-related data. Code function comment_tokens($type, $tokens, array $data, array $options, BubbleableMetadata $bubbleable_metadata) { $token_service = \Drupal::token(); $url_options = array('absolute' => TRUE); if (isset($options['langcode'])) { $url_opt

LocalTaskManagerInterface::getLocalTasksForRoute

public LocalTaskManagerInterface::getLocalTasksForRoute($route_name) Find all local tasks that appear on a named route. Parameters string $route_name: The route for which to find local tasks. Return value array Returns an array of task levels. Each task level contains instances of local tasks (LocalTaskInterface) which appear on the tab route. The array keys are the depths and the values are arrays of plugin instances. File core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php, line 40 C

File::baseFieldDefinitions

public static File::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide definitions for fields that sho