PageVariantInterface

Provides an interface for PageDisplayVariant plugins. Page display variants are a specific type of DisplayVariant, intended for "pages", which always have some main content to be rendered. Hence page display variants may choose to render that main content in a certain way: decorated in a certain way, laid out in a certain way, et cetera. For example, the \Drupal\block\Plugin\DisplayVariant\FullPageVariant page display variant is used by the Block module to control regions and output blocks plac

RestResourceConfig::normalizeRestMethod

protected RestResourceConfig::normalizeRestMethod($method) Normalizes the method to upper case and check validity. Parameters string $method: The request method. Return value string The normalised request method. Throws \InvalidArgumentException If the method is not supported. File core/modules/rest/src/Entity/RestResourceConfig.php, line 257 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code protected function normali

Shortcut

Defines the shortcut entity class. @property \Drupal\link\LinkItemInterface link Plugin annotation @ContentEntityType( id = "shortcut", label = @Translation("Shortcut link"), handlers = { "access" = "Drupal\shortcut\ShortcutAccessControlHandler", "form" = { "default" = "Drupal\shortcut\ShortcutForm", "add" = "Drupal\shortcut\ShortcutForm", "edit" = "Drupal\shortcut\ShortcutForm", "delete" = "Drupal\shortcut\Form\ShortcutDeleteForm" }, "translation"

ViewEditForm

Form controller for the Views edit form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\views_ui\ViewFormBaseclass \Drupal\views_ui\ViewEditForm File core/modules/views_ui/src/ViewEditForm.php, line 23 Namespace Drup

file_unmanaged_prepare

file_unmanaged_prepare($source, &$destination = NULL, $replace = FILE_EXISTS_RENAME) Internal function that prepares the destination for a file_unmanaged_copy or file_unmanaged_move operation. Checks if $source and $destination are valid and readable/writable. Checks that $source is not equal to $destination; if they are an error is reported. If file already exists in $destination either the call will error out, replace the file or rename the file based on the $replace parameter. Paramete

ConfigHandlerGroup

Provides a form for configuring grouping information for a Views UI handler. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\views_ui\Form\Ajax\ViewsFormBase implements ViewsFormInterfaceclass \Drupal\views_ui\Form\Ajax\ConfigHandlerGroup File core/modules/views_ui/src/Form/Ajax/ConfigHan

Renderer::replacePlaceholders

protected Renderer::replacePlaceholders(array &$elements) Replaces placeholders. Placeholders may have: #lazy_builder callback, to build a render array to be rendered into markup that can replace the placeholder #cache: to cache the result of the placeholder Also merges the bubbleable metadata resulting from the rendering of the contents of the placeholders. Hence $elements will be contain the entirety of bubbleable metadata. @returns bool Whether placeholders were replaced. Parameters

ContentEntityStorageBase::invokeFieldMethod

protected ContentEntityStorageBase::invokeFieldMethod($method, ContentEntityInterface $entity) Invokes a method on the Field objects within an entity. Any argument passed will be forwarded to the invoked method. Parameters string $method: The name of the method to be invoked. \Drupal\Core\Entity\ContentEntityInterface $entity: The entity object. Return value array A multidimensional associative array of results, keyed by entity translation language code and field name. File core/lib/Drupal/Co

View

Provides a render element to display a view. Plugin annotation @RenderElement("view") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\views\Element\View File core/modules/views/src/Element/View.php, line 13 Namespace Drupal\views\Elem

ModerationStateTransitionForm

Class ModerationStateTransitionForm. @package Drupal\content_moderation\Form Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\content_moderation\Form\ModerationStateTransitionForm File core/modules/content_moderation/src/Fo