Mercurial > hg > isophonics-drupal-site
view core/modules/language/src/ContentLanguageSettingsInterface.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\language; use Drupal\Core\Config\Entity\ConfigEntityInterface; /** * Provides an interface defining language settings for content entities. */ interface ContentLanguageSettingsInterface extends ConfigEntityInterface { /** * Gets the entity type ID this config applies to. * * @return string */ public function getTargetEntityTypeId(); /** * Gets the bundle this config applies to. * * @return string */ public function getTargetBundle(); /** * Sets the bundle this config applies to. * * @param string $target_bundle * The bundle. * * @return $this */ public function setTargetBundle($target_bundle); /** * Sets the default language code. * * @param string $default_langcode * The default language code. * * @return $this */ public function setDefaultLangcode($default_langcode); /** * Gets the default language code. * * @return string */ public function getDefaultLangcode(); /** * Sets if the language must be alterable or not. * * @param bool $language_alterable * Flag indicating if the language must be alterable. * * @return $this */ public function setLanguageAlterable($language_alterable); /** * Checks if the language is alterable or not. * * @return bool */ public function isLanguageAlterable(); /** * Checks if this config object contains the default values in every property. * * @return bool * True if all the properties contain the default values. False otherwise. */ public function isDefaultConfiguration(); }