Download the PHP package daggerhartlab/daglab_paragraphs without Composer

On this page you can find all versions of the php package daggerhartlab/daglab_paragraphs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package daglab_paragraphs

DagLab Paragraphs

Reports and cleanup tools for paragraphs: see which paragraph types are used and where, look at any paragraph on its own, and clean up the paragraphs and old revisions that are left behind as content changes.

Everything is worked out from the database each time you open a page. There is nothing to build or refresh first, and the reports stay correct after a cache clear.

Where to find it

Reports > Paragraph Usage (/admin/reports/daglab/paragraphs), with two tabs: In Use and Unused.

The module also makes the Paragraph types admin page (Structure > Paragraph types) list every type on one page, instead of 50 at a time.

In Use

Every paragraph type shown on at least one published page, with:

Click a column heading to sort. Sorting by Orphans is a quick way to find the types with the most to clean up.

Click a type's name for the list of every published page it is on.

Each row's Operations menu has:

Unused

Paragraph types not shown on any published page, in three groups.

Never Used Paragraphs

The type exists in configuration, but no paragraph of the type was ever created, or all of them have since been deleted. There is no content to clean up, so a developer can remove the type.

Orphaned Paragraphs

Paragraphs of the type exist, but every one of them is an orphan. Delete orphans removes them, after which the type moves to Never Used.

Existing Paragraphs without Published Revisions

Something still references these types, but not in a way that shows them on a published page. Referenced by says what, for example "Unpublished: 2 content items" or "Older revisions only: 7 content items". A warning in bold means a published block holding the type is placed in the block layout or embedded on a published page, so it may still be visible on the site.

Details opens the full list: each page or block that references the type, whether it is published, and which of its revisions hold the type (its current revision, older ones, or a newer draft). Each row has links to view the paragraph as that page holds it, to the page's revisions, and to edit or delete the page.

What to do depends on what is holding the type:

Cleaning up

Both cleanup actions ask for confirmation first, show exactly how much they will delete, and run in the background with a progress bar. Each run is recorded in the site log. Neither can be undone, so take a database backup before large cleanups.

Delete orphans

Permanently deletes the orphans of one paragraph type. Paragraphs that are still referenced anywhere, by any revision of any page or block, are never touched. The orphans are worked out again at the moment you confirm, so anything that became referenced in the meantime is left alone.

Delete older revisions

Permanently deletes the older revisions of pages and blocks that reference one paragraph type.

Afterwards the type's paragraphs show as orphans. Use Delete orphans to finish. Drupal may also remove some of them on its own during cron.

Viewing a paragraph

View example, and View paragraph on the details pages, open a single paragraph in the site's normal theme, so it looks as it does to visitors. Below it you will find:

Some components need the page they are on to display properly, for example maps that use the page's location. Those may look empty on their own.

What is an orphan?

An orphan is a paragraph that nothing references at all: not the current revision of any page or block, not an older revision, and not a draft. Nothing on the site can show it, and reverting a page to any of its revisions would not bring it back.

Orphans build up naturally as content is edited and old paragraphs are replaced. They are safe to delete.

A paragraph also stores the page it originally belonged to, but that is kept even after the page stops using the paragraph. These reports ignore it and check what actually references each paragraph.

Permissions

Permission Allows
View site reports (core) Using all the reports and viewing paragraphs.
Delete orphaned paragraphs Delete orphans.
Delete older revisions holding unused paragraphs Delete older revisions. Each revision also needs the usual permission to delete it.

The two delete permissions are marked as restricted. Only the administrator role has them until you grant them to another role.


All versions of daglab_paragraphs with dependencies

PHP Build Version
Package Version
Requires drupal/paragraphs Version ^1.23
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package daggerhartlab/daglab_paragraphs contains the following files

Loading the files please wait ...