protected function checkField(Mesour\Editable\Structures\Fields\IStructureField $structureField) { if ($structureField->isDisabled()) { throw new Mesour\InvalidStateException(sprintf('Field %s has not enabled attach existing row.', $structureField->getName())); } }
private static function checkDisabled(IStructureField $field) { if ($field->isDisabled()) { throw new Mesour\InvalidStateException(sprintf('Can not change data for disabled field `%s`.', $field->getName())); } }