You are here

public function ContentHubEntityLinkFieldHandler::validate in Acquia Content Hub 8

Validates whether the loaded field is an acceptable argument.

Return value

bool|\Drupal\acquia_contenthub\ContentHubEntityLinkFieldHandler This object if validates, FALSE otherwise.

File

src/ContentHubEntityLinkFieldHandler.php, line 52

Class

ContentHubEntityLinkFieldHandler
Content Hub Entity Link Field.

Namespace

Drupal\acquia_contenthub

Code

public function validate() {
  if (!empty($this->field)) {
    return $this;
  }
  return FALSE;
}