Configure your resource
Implement the Resource interface
namespace App\Entity;
class Book implements ResourceInterface
{
public function getId(): int
{
return $this->id;
}
}Register your resource using the AsResource attribute
Register your resource using an external PHP file
Advanced configuration
Configure the resource name
Name
Type
Configure the resource plural name
Name
Type
Configure additional resource vars
Last updated
Was this helpful?
