LanguageSelectionPageConditionInterface.php in Language Selection Page 8.2
Namespace
Drupal\language_selection_pageFile
src/LanguageSelectionPageConditionInterface.phpView source
<?php
declare (strict_types=1);
namespace Drupal\language_selection_page;
use Drupal\Core\Condition\ConditionInterface;
use Drupal\Core\Form\FormStateInterface;
/**
* The LanguageSelectionPageConditionInterface interface.
*/
interface LanguageSelectionPageConditionInterface extends ConditionInterface {
/**
* Alter the $content render array used to build the LSP page.
*
* @param array &$content
* The content render array.
* @param string $destination
* The destination path.
*/
public function alterPageContent(array &$content = [], $destination = '<front>');
/**
* Alter the page response.
*
* @param array|\Symfony\Component\HttpFoundation\Response $content
* The render array or a response.
*
* @return array|\Symfony\Component\HttpFoundation\Response
* Returns a render array or a response.
*/
public function alterPageResponse(&$content = []);
/**
* Wrapper function that returns FALSE.
*
* @return bool
* Return FALSE
*/
public function block();
/**
* Returns the description of the plugin.
*
* If the description is not set, returns NULL.
*
* @return string|null
* The description of the plugin.
*/
public function getDescription();
/**
* Find the destination to redirect the user to after choosing the language.
*
* @param string $destination
* The destination.
*
* @return string
* The destination.
*/
public function getDestination($destination);
/**
* Returns the name of the plugin.
*
* If the name is not set, returns its ID.
*
* @return string
* The name of the plugin.
*/
public function getName();
/**
* Returns the weight of the plugin.
*
* If the weight is not set, returns 0.
*
* @return int
* The weight of the plugin.
*/
public function getWeight();
/**
* Wrapper function that returns FALSE.
*
* @return bool
* Return TRUE
*/
public function pass();
/**
* Post config save method.
*
* Method that gets triggered when the configuration of the form
* has been saved.
*
* @param array $form
* The form array.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The FormState object.
*/
public function postConfigSave(array &$form, FormStateInterface $form_state);
/**
* Set the weight of the plugin.
*
* @param int $weight
* The plugin's weight.
*
* @return $this
* Returns itself.
*/
public function setWeight($weight);
}
Interfaces
Name | Description |
---|---|
LanguageSelectionPageConditionInterface | The LanguageSelectionPageConditionInterface interface. |