src/Service/NT8PropertyService.php
public function createNodeInstanceFromPropref(string $propRef = "") {
    $data = $this->getPropertyFromApi($propRef);

    $created_node = NULL;
    if ($data && $data instanceof \stdClass) {
      $created_node = $this->createNodeInstanceFromData($data, TRUE);
    }

    return $created_node;
  }
public function createNodeInstanceFromPropref(string $propRef = "") {
    $data = $this->getPropertyFromApi($propRef);

    $created_node = NULL;
    if ($data && $data instanceof \stdClass) {
      $created_node = $this->createNodeInstanceFromData($data, TRUE);
    }

    return $created_node;
  }
public function createNodeInstanceFromPropref ( string $ propRef = "" ) { $ data = $ this -> getPropertyFromApi ( $ propRef ) ; $ created_node = NULL ; if ( $ data && $ data instanceof \ stdClass ) { $ created_node = $ this -> createNodeInstanceFromData ( $ data , TRUE ) ; } return $ created_node ; }
Creates a property node populated with data returned from the API.

@param string $propRef
propRef to load into a property node.

@return \Drupal\Core\Entity\EntityInterface|null
The created property entity.

@throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
@throws \Drupal\Core\Entity\EntityStorageException
@throws \Exception
Creates a property node populated with data returned from the API .