Verified Commit 588b0f90 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3465880 by catch: FileFieldCreationTrait methods should be protected

(cherry picked from commit 89f31385)
parent 6b661927
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ trait FileFieldCreationTrait {
   * @return \Drupal\field\FieldStorageConfigInterface
   *   The file field.
   */
  public function createFileField($name, $entity_type, $bundle, $storage_settings = [], $field_settings = [], $widget_settings = []) {
  protected function createFileField($name, $entity_type, $bundle, $storage_settings = [], $field_settings = [], $widget_settings = []) {
    $field_storage = FieldStorageConfig::create([
      'entity_type' => $entity_type,
      'field_name' => $name,
@@ -61,7 +61,7 @@ public function createFileField($name, $entity_type, $bundle, $storage_settings
   * @param array $widget_settings
   *   A list of widget settings that will be added to the widget defaults.
   */
  public function attachFileField($name, $entity_type, $bundle, $field_settings = [], $widget_settings = []) {
  protected function attachFileField($name, $entity_type, $bundle, $field_settings = [], $widget_settings = []) {
    $field = [
      'field_name' => $name,
      'label' => $name,