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

NodeTypeForm::form

public NodeTypeForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/node/src/NodeTypeForm.php, line 46 Class NodeTypeForm Form handler for node type forms. Namespace Drupal\node Code public function form(array $form, FormStateInterface $form_state) { $form = parent::form($form, $form_state); $ty

Statement::getStatement

protected Statement::getStatement($query, &$args = array()) The PDO SQLite layer doesn't replace numeric placeholders in queries correctly, and this makes numeric expressions (such as COUNT(*) >= :count) fail. We replace numeric placeholders in the query ourselves to work around this bug. See http://bugs.php.net/bug.php?id=45259 for more details. Overrides StatementPrefetch::getStatement File core/lib/Drupal/Core/Database/Driver/sqlite/Statement.php, line 29 Class Statement SQLite

LOCALE_CUSTOMIZED

Flag for locally customized interface translation. Such translations are edited from their imported originals on the user interface or are imported as customized. File core/modules/locale/locale.module, line 77 Enables the translation of the user interface to languages other than English. Code const LOCALE_CUSTOMIZED = 1;

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

EntityFormDisplay::validateFormValues

public EntityFormDisplay::validateFormValues(FieldableEntityInterface $entity, array &$form, FormStateInterface $form_state) Validates submitted widget values and sets the corresponding form errors. This method invokes entity validation and takes care of flagging them on the form. This is particularly useful when all elements on the form are managed by the form display. As an alternative, entity validation can be invoked separately such that some violations can be flagged manually. In that

ElementInfoManager::getInfo

public ElementInfoManager::getInfo($type) Retrieves the default properties for the defined element type. Each of the form element types defined by this hook is assumed to have a matching theme hook, which should be registered with hook_theme() as normal. For more information about custom element types see the explanation at https://www.drupal.org/node/169815. Parameters string $type: The machine name of an element type plugin. Return value array An associative array describing the element typ

Url::fromUserInput

public static Url::fromUserInput($user_input, $options = []) Creates a Url object for a relative URI reference submitted by user input. Use this method to create a URL for user-entered paths that may or may not correspond to a valid Drupal route. Parameters string $user_input: User input for a link or path. The first character must be one of the following characters: '/': A path within the current site. This path might be to a Drupal route (e.g., '/admin'), to a file (e.g., '/README.txt'), or

hook_install

hook_install() Perform setup tasks when the module is installed. If the module implements hook_schema(), the database tables will be created before this hook is fired. If the module provides a MODULE.routing.yml or alters routing information these changes will not be available when this hook is fired. If up-to-date router information is required, for example to use \Drupal\Core\Url, then (preferably) use hook_modules_installed() or rebuild the router in the hook_install() implementation. Implem

ContentEntityForm

Entity form variant for content entity types. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterface See also \Drupal\Core\ContentEntityBase File core/lib/Drupa