ReferencePremium
CoullWorks Blog for Magento 2 PHP API reference
The service contracts in CoullWorks\Blog\Api that your own modules can depend on.
Updated 16 November 2026Back to the package pageBuy
These interfaces are the supported way to read and change blog data from PHP. Plugins on repository interfaces are the supported way to add behaviour;
PostRepositoryInterface#
Methods: get, getByUrlKey, getList, save, delete, deleteById
CategoryRepositoryInterface#
Methods: same six methods
TagRepositoryInterface#
Methods: same six methods
AuthorRepositoryInterface#
Methods: same six methods
CommentRepositoryInterface#
Methods: get, getList, save, delete, deleteById
CommentManagementInterface#
Methods: add, approve, reject, markSpam, replyAsAdmin, getThread
PostManagementInterface#
Methods: duplicate, restoreRevision, previewToken, incrementViews
RelatedProductsInterface#
Methods: forPost
VisibilityInterface#
Methods: isVisible
LicenceGateInterface#
Methods: isLicensed
CacheTagsInterface#
Methods: post, category, tag, author, of
Search\BlogSearchInterface#
Methods: search) and Search\BlogIndexerInterface (reindexAll, reindexPosts
Seo\MetaResolverInterface#
Methods: forPost, forCategory, forTag, forAuthor, forListing) and Seo\StructuredDataInterface (forPage
Frontend\BreadcrumbsInterface#
Methods: forPost, forListing) and Frontend\PostContentRendererInterface (render
Import\SourceInterface#
Methods: code, withOptions, validate, entities) and Import\ImporterInterface (run
Ai\TextProviderInterface#
Methods: research, generate), Ai\ImageProviderInterface (generateImage), Ai\SpendGuardInterface (assertCanSpend), Ai\WizardInterface (startResearch, rerunResearch, branch, outline, write, images, saveDraft, refresh, applyRefresh
Block\ParserInterface, RendererInterface, ValidatorInterface, SchemaProviderInterface#
Block\ParserInterface, RendererInterface, ValidatorInterface, SchemaProviderInterface (block schema cwb-blocks/1
Comment\SubmissionGuardInterface, CommentTokenIssuerInterface#
Comment\SubmissionGuardInterface, CommentTokenIssuerInterface.







