diff --git a/core/modules/filter/src/Entity/FilterFormat.php b/core/modules/filter/src/Entity/FilterFormat.php index e3232ba..ccb7298 100644 --- a/core/modules/filter/src/Entity/FilterFormat.php +++ b/core/modules/filter/src/Entity/FilterFormat.php @@ -133,6 +133,13 @@ public function getLabel() { /** * {@inheritdoc} */ + public function getLabelCallback() { + return __NAMESPACE__ . '\FilterFormat::getLabel'; + } + + /** + * {@inheritdoc} + */ public function getRoles() { return $this->roles; } diff --git a/core/modules/filter/src/FilterFormatInterface.php b/core/modules/filter/src/FilterFormatInterface.php index d255314..5359c55 100644 --- a/core/modules/filter/src/FilterFormatInterface.php +++ b/core/modules/filter/src/FilterFormatInterface.php @@ -93,6 +93,14 @@ public function getHtmlRestrictions(); public function getLabel(); /** + * Returns the callback to retrieve the label for the FilterFormat entity type + * + * @return string + * The callback to retrieve the label for this format. + */ + public function getLabelCallback(); + + /** * Returns the weight of the format in the text format selector. * * @return int