You are here

public function NodeOrderAccess::weightExists in Node Order 8

Field weight exists in taxonomy_index table.

Return value

\Drupal\Core\Access\AccessResult Access result.

File

src/Access/NodeOrderAccess.php, line 55

Class

NodeOrderAccess

Namespace

Drupal\nodeorder\Access

Code

public function weightExists() {
  return $this->database
    ->schema()
    ->fieldExists('taxonomy_index', 'weight') ? AccessResult::allowed() : AccessResult::forbidden();
}