You are here

public function FileFieldSourcesTestBase::getFieldSetting in FileField Sources 8

Get field setting.

Parameters

string $setting_name: Setting name.

4 calls to FileFieldSourcesTestBase::getFieldSetting()
AttachSourceTest::getCustomAttachPath in tests/src/Functional/AttachSourceTest.php
Calculate custom absolute path.
AttachSourceTest::getDestinationUri in tests/src/Functional/AttachSourceTest.php
Get destination uri of a .
AttachSourceTest::testCopyFileFromAbsolutePath in tests/src/Functional/AttachSourceTest.php
Tests copy file from absolute path.
AttachSourceTest::testMoveFilesFromRelativePath in tests/src/Functional/AttachSourceTest.php
Tests move relative files with different names.

File

tests/src/Functional/FileFieldSourcesTestBase.php, line 450

Class

FileFieldSourcesTestBase
Base class for File Field Sources test cases.

Namespace

Drupal\Tests\filefield_sources\Functional

Code

public function getFieldSetting($setting_name) {
  $field_definition = FieldConfig::load("node.{$this->typeName}.{$this->fieldName}");
  return $field_definition
    ->getSetting($setting_name);
}