View::preRenderViewElement

public static View::preRenderViewElement($element) View element pre render callback. File core/modules/views/src/Element/View.php, line 35 Class View Provides a render element to display a view. Namespace Drupal\views\Element Code public static function preRenderViewElement($element) { // Allow specific Views displays to explicitly perform pre-rendering, for // those displays that need to be able to know the fully built render array. if (!empty($element['#pre_rendered'])) { r

ModerationStateForm

Class ModerationStateForm. 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\ModerationStateForm File core/modules/content_moderation/src/Form/ModerationStateForm.php, line 12 Namespace Drupal\con

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

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

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

ChainedFastBackend::set

public ChainedFastBackend::set($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) Stores data in the persistent cache. Core cache implementations set the created time on cache item with microtime(TRUE) rather than REQUEST_TIME_FLOAT, because the created time of cache items should match when they are created, not when the request started. Apart from being more accurate, this increases the chance an item will legitimately be considered valid. Parameters string $cid: The cache ID of

FormBuilderInterface::submitForm

public FormBuilderInterface::submitForm($form_arg, FormStateInterface &$form_state) Retrieves, populates, and processes a form. This function allows you to supply values for form elements and submit a form for processing. Compare to self::getForm(), which also builds and processes a form, but does not allow you to supply values. There is no return value, but you can check to see if there are errors by calling $form_state->getErrors(). // register a new user $form_state = new FormState();

EnforcedResponse

A wrapper containing a response which is to be enforced upon delivery. The FormBuilder throws an EnforcedResponseException whenever a form desires to explicitly set a response object. Exception handlers capable of setting the response should extract the response object of such an exception using EnforcedResponse::createFromException(). Then wrap it into an EnforcedResponse object and replace the original response with the wrapped response. Hierarchy class \Symfony\Component\HttpFoundation\Respo

ModulesListConfirmForm::submitForm

public ModulesListConfirmForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/system/src/Form/ModulesListConfirmForm.php, line 159 Class ModulesListConfirmForm Builds a confirmation form for enabling modules with dependencies. Namespa