You are here

protected static function IframeWidgetBase::getSizedescription in Iframe 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/IframeWidgetBase.php \Drupal\iframe\Plugin\Field\FieldWidget\IframeWidgetBase::getSizedescription()

Translate the description for iframe width/height only once.

4 calls to IframeWidgetBase::getSizedescription()
IframeWidgetBase::formElement in src/Plugin/Field/FieldWidget/IframeWidgetBase.php
It is .
IframeWidgetBase::settingsForm in src/Plugin/Field/FieldWidget/IframeWidgetBase.php
It is .
IframeWidgetBase::validateHeight in src/Plugin/Field/FieldWidget/IframeWidgetBase.php
Validate height (if minimum url is defined)
IframeWidgetBase::validateWidth in src/Plugin/Field/FieldWidget/IframeWidgetBase.php
Validate width(if minimum url is defined)

File

src/Plugin/Field/FieldWidget/IframeWidgetBase.php, line 47

Class

IframeWidgetBase
Plugin implementation base functions.

Namespace

Drupal\iframe\Plugin\Field\FieldWidget

Code

protected static function getSizedescription() {
  return t('The iframe\'s width and height can be set in pixels as a number only ("500" for 500 pixels) or in a percentage value followed by the percent symbol (%) ("50%" for 50 percent).');
}