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

BlockContentInterface::setRevisionLog

public BlockContentInterface::setRevisionLog($revision_log) Sets the block revision log message. Parameters string $revision_log: The revision log message. Return value \Drupal\block_content\BlockContentInterface The class instance that this method is called on. Deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage() instead. File core/modules/block_content/src/BlockContentInterface.php, line 48 Class BlockC

field_entity_bundle_delete

field_entity_bundle_delete($entity_type_id, $bundle) Implements hook_entity_bundle_delete(). Related topics Field API Attaches custom data fields to Drupal entities. File core/modules/field/field.module, line 215 Attach custom data fields to Drupal entities. Code function field_entity_bundle_delete($entity_type_id, $bundle) { $storage = \Drupal::entityManager()->getStorage('field_config'); // Get the fields on the bundle. $fields = $storage->loadByProperties(['entity_type' =>

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

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)

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;

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;

DateFormatFormBase::form

public DateFormatFormBase::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/system/src/Form/DateFormatFormBase.php, line 78 Class DateFormatFormBase Provides a base form for date formats. Namespace Drupal\system\Form Code public function form(array $form, FormStateInterface $form_state) { $form['labe