InfoParserInterface::parse

public InfoParserInterface::parse($filename) Parses Drupal module, theme and profile .info.yml files. Info files are NOT for placing arbitrary theme and module-specific settings. Use Config::get() and Config::set()->save() for that. Info files are formatted as YAML. If the 'version' key is set to 'VERSION' in any info file, then the value will be substituted with the current version of Drupal core. Information stored in all .info.yml files: name: The real name of the module for display purp

BlockListBuilder::buildBlocksForm

protected BlockListBuilder::buildBlocksForm() Builds the main "Blocks" portion of the form. Return value array File core/modules/block/src/BlockListBuilder.php, line 146 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected function buildBlocksForm() { // Build blocks first for each region. $blocks = []; $entities = $this->load(); /** @var \Drupal\block\BlockInterface[] $entities */ foreach ($entities as $entity

FormBuilder

Provides form building and processing. Hierarchy class \Drupal\Core\Form\FormBuilder implements FormBuilderInterface, FormCacheInterface, FormSubmitterInterface, FormValidatorInterface Related topics Form generation Describes how to generate and manipulate forms and process form submissions. File core/lib/Drupal/Core/Form/FormBuilder.php, line 28 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormBuilder::$classResolver protected property The class

EntityModerationForm

The EntityModerationForm provides a simple UI for changing moderation state. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\content_moderation\Form\EntityModerationForm File core/modules/content_moderation/src/Form/EntityModerationForm.php, line 17 Namespace Drupal\content_moderation\

ConfigDependencyDeleteFormTrait::addDependencyListsToForm

protected ConfigDependencyDeleteFormTrait::addDependencyListsToForm(array &$form, $type, array $names, ConfigManagerInterface $config_manager, EntityManagerInterface $entity_manager) Adds form elements to list affected configuration entities. Parameters array $form: The form array to add elements to. string $type: The type of dependency being checked. Either 'module', 'theme', 'config' or 'content'. array $names: The specific names to check. If $type equals 'module' or 'theme' then it shou

InaccessibleMenuLink

A menu link plugin for wrapping another menu link, in sensitive situations. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Menu\MenuLinkBase implements MenuLinkInterfaceclass \Drupal\Core\Menu\InaccessibleMenuLink See also \Drupal\Core\Menu\DefaultMenuLinkTreeManipulators::checkAccess() File core/lib/Drupa

TypedData::$name

The property name. Type: string File core/lib/Drupal/Core/TypedData/TypedData.php, line 33 Class TypedData The abstract base class for typed data. Namespace Drupal\Core\TypedData Code protected $name;

HtmlResponseAttachmentsProcessor::processAttachments

public HtmlResponseAttachmentsProcessor::processAttachments(AttachmentsInterface $response) Processes the attachments of a response that has attachments. Libraries, JavaScript settings, feeds, HTML <head> tags, HTML <head> links, HTTP headers, and the HTTP status code are attached to render arrays using the #attached property. The #attached property is an associative array, where the keys are the attachment types and the values are the attached data. For example: $build['#attached']

EditorImageDialog::buildForm

public EditorImageDialog::buildForm(array $form, FormStateInterface $form_state, Editor $editor = NULL) Parameters \Drupal\editor\Entity\Editor $editor: The text editor to which this dialog corresponds. Overrides FormInterface::buildForm File core/modules/editor/src/Form/EditorImageDialog.php, line 60 Class EditorImageDialog Provides an image dialog for text editors. Namespace Drupal\editor\Form Code public function buildForm(array $form, FormStateInterface $form_state, Editor $editor

Image::convert

public Image::convert($extension) Instructs the toolkit to save the image in the format specified by the extension. Parameters string $extension: The extension to convert to (for instance, 'jpeg' or 'png'). Allowed values depend on the current image toolkit. Return value bool TRUE on success, FALSE on failure. Overrides ImageInterface::convert See also \Drupal\Core\ImageToolkit\ImageToolkitInterface::getSupportedExtensions() File core/lib/Drupal/Core/Image/Image.php, line 156 Class Image