ProfileTranslationHandler

Defines the translation handler for users. Hierarchy class \Drupal\content_translation\ContentTranslationHandler implements ContentTranslationHandlerInterface, EntityHandlerInterface uses DependencySerializationTraitclass \Drupal\user\ProfileTranslationHandler File core/modules/user/src/ProfileTranslationHandler.php, line 12 Namespace Drupal\user Members Name Modifiers Type Description ContentTranslationHandler::$currentUser protected property The current user. Conten

ProfileForm::__construct

public ProfileForm::__construct(EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, QueryFactory $entity_query) Constructs a new EntityForm object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager. \Drupal\Core\Entity\Query\QueryFactory $entity_query: The entity query factory. Overrides AccountForm::__construct File core/modules/user/s

ProfileForm::save

public ProfileForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operation

ProfileForm::editCancelSubmit

public ProfileForm::editCancelSubmit($form, FormStateInterface $form_state) Provides a submit handler for the 'Cancel account' button. File core/modules/user/src/ProfileForm.php, line 55 Class ProfileForm Form handler for the profile forms. Namespace Drupal\user Code public function editCancelSubmit($form, FormStateInterface $form_state) { $destination = array(); $query = $this->getRequest()->query; if ($query->has('destination')) { $destination = array('destination'

ProfileForm::actions

protected ProfileForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/user/src/ProfileForm.php, line 25 Class ProfileForm Form handler for the profile forms. Namespace Drupal\user Code protected function actions(array $form, FormStateInterface $form_state) { $element = parent

ProfileForm

Form handler for the profile forms. 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 ContentEntityFormInterfaceclass \Drupal\user\AccountFormclass \Drupal\user\ProfileForm File cor

ProcessedText::preRenderText

public static ProcessedText::preRenderText($element) Pre-render callback: Renders a processed text element into #markup. Runs all the enabled filters on a piece of text. Note: Because filters can inject JavaScript or execute PHP code, security is vital here. When a user supplies a text format, you should validate it using $format->access() before accepting/using it. This is normally done in the validation stage of the Form API. You should for example never make a preview of content in a disa

ProcessedText::logger

protected static ProcessedText::logger($channel) Wraps a logger channel. Parameters string $channel: The name of the channel. Return value \Psr\Log\LoggerInterface The logger for this channel. File core/modules/filter/src/Element/ProcessedText.php, line 142 Class ProcessedText Provides a processed text render element. Namespace Drupal\filter\Element Code protected static function logger($channel) { return \Drupal::logger($channel); }

ProcessedText::getInfo

public ProcessedText::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/modules/filter/src/Element/ProcessedText.php, line 22 Class ProcessedText Provides a processed text render element. Namespace Drupal\filter\Element Code publ

ProcessedText::configFactory

protected static ProcessedText::configFactory() Wraps the config factory. Return value \Drupal\Core\Config\ConfigFactoryInterface File core/modules/filter/src/Element/ProcessedText.php, line 151 Class ProcessedText Provides a processed text render element. Namespace Drupal\filter\Element Code protected static function configFactory() { return \Drupal::configFactory(); }