book_node_prepare_form

book_node_prepare_form(NodeInterface $node, $operation, FormStateInterface $form_state) Implements hook_ENTITY_TYPE_prepare_form() for node entities. File core/modules/book/book.module, line 291 Allows users to create and organize related content in an outline. Code function book_node_prepare_form(NodeInterface $node, $operation, FormStateInterface $form_state) { /** @var \Drupal\book\BookManagerInterface $book_manager */ $book_manager = \Drupal::service('book.manager'); // Prepare def

User::isAuthenticated

public User::isAuthenticated() Returns TRUE if the account is authenticated. Return value bool TRUE if the account is authenticated. Overrides AccountInterface::isAuthenticated File core/modules/user/src/Entity/User.php, line 346 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function isAuthenticated() { return $this->id() > 0; }

ViewUIConverter::__construct

public ViewUIConverter::__construct(EntityManagerInterface $entity_manager, SharedTempStoreFactory $temp_store_factory, ConfigFactoryInterface $config_factory = NULL, AdminContext $admin_context = NULL) Constructs a new ViewUIConverter. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\user\SharedTempStoreFactory $temp_store_factory: The factory for the temp store object. Overrides AdminPathConfigEntityConverter::__construct File core/modules/vi

VocabularyListBuilder::buildHeader

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

SetDialogOptionCommand::$optionName

A jQuery UI dialog option name. Type: string File core/lib/Drupal/Core/Ajax/SetDialogOptionCommand.php, line 24 Class SetDialogOptionCommand Defines an AJAX command that sets jQuery UI dialog properties. Namespace Drupal\Core\Ajax Code protected $optionName;

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

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

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

ContentTranslationMetadataWrapperInterface::setChangedTime

public ContentTranslationMetadataWrapperInterface::setChangedTime($timestamp) Sets the translation modification timestamp. The metadata field will be updated, only if it's translatable. Parameters int $timestamp: The UNIX timestamp of when the translation was last modified. Return value $this File core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php, line 129 Class ContentTranslationMetadataWrapperInterface Common interface for content translation metadata