public function PathFileEntity::setName in Path File 8
Sets the Path file entity name.
Parameters
string $name: The Path file entity name.
Return value
\Drupal\path_file\Entity\PathFileEntityInterface The called Path file entity entity.
Overrides PathFileEntityInterface::setName
File
- src/
Entity/ PathFileEntity.php, line 79
Class
- PathFileEntity
- Defines the Path file entity entity.
Namespace
Drupal\path_file\EntityCode
public function setName($name) {
$this
->set('name', $name);
return $this;
}