Commit b950117c authored by Julian Pustkuchen's avatar Julian Pustkuchen Committed by Erik Stielstra
Browse files

git commit -m 'Issue #3305672 by Anybody, Sutharsan: Make extra_field_ prefix...

git commit -m 'Issue #3305672 by Anybody, Sutharsan: Make extra_field_ prefix a constant for reuse '
parent 26774a8e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -199,7 +199,7 @@ abstract class ExtraFieldManagerBase extends DefaultPluginManager implements Ext
   */
  protected function fieldName($pluginId) {

    return 'extra_field_' . $pluginId;
    return static::EXTRA_FIELD_PREFIX . $pluginId;
  }

  /**
+5 −0
Original line number Diff line number Diff line
@@ -7,6 +7,11 @@ namespace Drupal\extra_field\Plugin;
 */
interface ExtraFieldManagerBaseInterface {

  /**
   * The component id prefix for every extra_field.
   */
  const EXTRA_FIELD_PREFIX = 'extra_field_';

  /**
   * Exposes the ExtraField plugins to hook_entity_extra_field_info().
   *