UpdateSettingsForm

Configure update settings for this site. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfigFormBase uses ConfigFormBaseTraitclass \Drupal\update\UpdateSettingsForm implements ContainerInjectionInterface File core/modules/update/src/UpdateSettingsForm.php, line 14 Namespac

ImageStyleDeleteForm::getQuestion

public ImageStyleDeleteForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides EntityDeleteFormTrait::getQuestion File core/modules/image/src/Form/ImageStyleDeleteForm.php, line 23 Class ImageStyleDeleteForm Creates a form to delete an image style. Namespace Drupal\image\Form Code public function getQuestion() { return $this->t('Optionally select a style before deleting %style', array('%s

BlockContent::baseFieldDefinitions

public static BlockContent::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

BlockContentType

Defines the custom block type entity. Plugin annotation @ConfigEntityType( id = "block_content_type", label = @Translation("Custom block type"), handlers = { "form" = { "default" = "Drupal\block_content\BlockContentTypeForm", "add" = "Drupal\block_content\BlockContentTypeForm", "edit" = "Drupal\block_content\BlockContentTypeForm", "delete" = "Drupal\block_content\Form\BlockContentTypeDeleteForm" }, "list_builder" = "Drupal\block_content\BlockContentType

TermStorageInterface::resetWeights

public TermStorageInterface::resetWeights($vid) Reset the weights for a given vocabulary ID. Parameters string $vid: Vocabulary ID to retrieve terms for. File core/modules/taxonomy/src/TermStorageInterface.php, line 103 Class TermStorageInterface Defines an interface for taxonomy_term entity storage classes. Namespace Drupal\taxonomy Code public function resetWeights($vid);

ContentEntityBase::language

public ContentEntityBase::language() Gets the language of the entity. Return value \Drupal\Core\Language\LanguageInterface The language object. Overrides Entity::language File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 599 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function language() { $language = NULL; if ($this->activeLangcode != LanguageInterface::LANGCODE_DEFAULT) {

EntityDefinitionUpdateManagerInterface::getFieldStorageDefinition

public EntityDefinitionUpdateManagerInterface::getFieldStorageDefinition($name, $entity_type_id) Returns a field storage definition ready to be manipulated. When needing to apply updates to existing field storage definitions, this method should always be used to retrieve a storage definition ready to be manipulated. @todo Make this return a mutable storage definition interface when we have one. See https://www.drupal.org/node/2346329. Parameters string $name: The field name. string $entity_typ

NodeRevisionRevertForm::create

public static NodeRevisionRevertForm::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: The s

BaseFieldDefinition::getPropertyDefinition

public BaseFieldDefinition::getPropertyDefinition($name) Gets the definition of a contained property. Parameters string $name: The name of property. Return value \Drupal\Core\TypedData\DataDefinitionInterface|null The definition of the property or NULL if the property does not exist. Overrides FieldStorageDefinitionInterface::getPropertyDefinition File core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 524 Class BaseFieldDefinition A class for defining entity fields. Namespace D

ForumManager::getIndex

public ForumManager::getIndex() Generates and returns the forum index. The forum index is a pseudo term that provides an overview of all forums. Return value \Drupal\taxonomy\TermInterface A pseudo term representing the overview of all forums. Overrides ForumManagerInterface::getIndex File core/modules/forum/src/ForumManager.php, line 427 Class ForumManager Provides forum manager service. Namespace Drupal\forum Code public function getIndex() { if ($this->index) { return $thi