You are here

public function FieldValidationRuleBase::getDerivativeExtension in Field Validation 8

Returns the extension the derivative would have have after adding this field_validation_rule.

Parameters

string $extension: The field_validation_rule extension the derivative has before adding.

Return value

string The field_validation_rule extension after adding.

Overrides FieldValidationRuleInterface::getDerivativeExtension

File

src/FieldValidationRuleBase.php, line 96

Class

FieldValidationRuleBase
Provides a base class for FieldValidationRule.

Namespace

Drupal\field_validation

Code

public function getDerivativeExtension($extension) {

  // Most tabs will not change the extension. This base
  // implementation represents this behavior. Override this method if your
  // tab does change the extension.
  return $extension;
}