You are here

public function PrivateItemList::isLocked in Private content 8.2

Return whether private field is locked (not-writeable), based on the node's content type.

Return value

boolean True if locked.

File

src/Plugin/Field/FieldType/PrivateItemList.php, line 53

Class

PrivateItemList
List class for PrivateItem.

Namespace

Drupal\private_content\Plugin\Field\FieldType

Code

public function isLocked() {
  return $this
    ->checkTypeSetting(PRIVATE_ALWAYS, PRIVATE_DISABLED);
}